package com.ktjy.springredis.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @return 13141
 * 2025/7/23
 * 15:17
 */
@Data
public class Student implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id; // 编号
    private String name; // 姓名

    // 构造方法
    public Student() {
    }

    public Student(String id, String name) {
        this.id = id;
        this.name = name;
    }

    // 属性封装
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
